/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pro.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 文档管理Entity
 * @author fanqinglong
 * @version 2017-05-03
 */
public class Document extends DataEntity<Document> {
	
	private static final long serialVersionUID = 1L;
	private Folder folder;		// 所属文件夹
	private ProjectTask task;		// 所属任务
	private String name;		// 文档名称
	private String realName;    //真实名称
	private String src;		// &middot;路径
	
	public Document() {
		super();
	}

	public Document(String id){
		super(id);
	}

	
	public Folder getFolder() {
		return folder;
	}

	public void setFolder(Folder folder) {
		this.folder = folder;
	}

	public ProjectTask getTask() {
		return task;
	}

	public void setTask(ProjectTask task) {
		this.task = task;
	}

	@Length(min=0, max=64, message="文档名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=200, message="&middot;路径长度必须介于 0 和 200 之间")
	public String getSrc() {
		return src;
	}

	public void setSrc(String src) {
		this.src = src;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
	
}